package com.mapper;

import com.pojo.ReplyDetail;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ReplyDetailMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ReplyDetail replyDetail);

    int insertSelective(ReplyDetail record);

    ReplyDetail selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ReplyDetail record);

    int updateByPrimaryKey(ReplyDetail record);

    @Select("select * from reply_detail where invid=#{invid}")
    List<ReplyDetail> queryByInvid(Integer invid);
    //根据invid删除
    @Delete("delete from reply_detail where invid=#{invid}")
    boolean deleteReply(Integer invid);
    // 怎么回事 ， 人去哪了 ， 还不回来敲代码 ， 我都要回去 了 ！！！
    // 告辞  -- 发送自 2019-12-11 17:52
}